package com.eastfair.venueservice.service;

import com.eastfair.builder.dto.ExhibitorDTO;
import com.eastfair.builder.vo.ExhibitorVO;
import com.eastfair.core.base.R;
import com.eastfair.venueservice.entity.BondManage;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 展商服务.
 *
 * @author dqq
 * @date 2022 /12/12
 */
public interface VenueManageExhibitorService {

    /**
     * 查询展商VO列表.
     *
     * @param exhibitorDTO the exhibitor dto
     * @return the r
     */
    List<ExhibitorVO> queryExhibitors(ExhibitorDTO exhibitorDTO);

    /**
     * 查询展商VO列表.
     *
     * @param id the id
     * @return the exhibitor
     */
    ExhibitorVO getExhibitor(Long id);

    /**
     * 更新展商应付保证金金额.
     *
     * @param exhibitorDTO the exhibitor dto
     * @return the r
     */
    boolean updateShouldEarnestMoney(ExhibitorDTO exhibitorDTO);

    /**
     * 更新保证金支付状态.
     *
     * @param exhibitorDTO the exhibitor dto
     * @return the r
     */
    boolean updateEarnestMoneyPayStatus(ExhibitorDTO exhibitorDTO);

    /**
     * 保证金订单支付更新展商展位的实际缴纳保证金.
     *
     * @param bondManage the bond manage
     * @return the boolean
     */
    boolean updateEarnestMoneyByBondManage(BondManage bondManage);

    /**
     * 更新保证金余额.
     *
     * @param exhibitorDTO the exhibitor dto
     * @return the r
     */
    @Deprecated
    boolean updateRemainEarnestMoney(ExhibitorDTO exhibitorDTO);
}